/**
 * @author Ucar Sahin
 *
 * 20.04.2011
 * Meal.java
 */

package at.fhv.easyDietWeb.shared.db.diet;

import java.util.Date;
import com.google.gwt.user.client.rpc.IsSerializable;


/**
 * information:
 * represents the table Meal on the database
 */
public class Meal implements IsSerializable
{
	private int _mealId;
	private Plan _plan;
	private NutritionalJournal _nutritionalJournal;
	private MealType _mealType;
	private Date _day;

	private void setMealId(int mealId)
	{
		_mealId = mealId;
	}

	public int getMealId()
	{
		return _mealId;
	}

	public void setPlan(Plan plan)
	{
		_plan = plan;
	}

	public Plan getPlan()
	{
		return _plan;
	}

	public void setDay(Date day)
	{
		_day = day;
	}

	public Date getDay()
	{
		return _day;
	}

	public void setMealType(MealType mealType)
	{
		_mealType = mealType;
	}

	public MealType getMealType()
	{
		return _mealType;
	}
	
	public void setNutritionalJournal(NutritionalJournal nutritionalJournal) {
		_nutritionalJournal = nutritionalJournal;
	}
	public NutritionalJournal getNutritionalJournal() {
		return _nutritionalJournal;
	}
}
